package top.aicats.SJCThreadPool;

import org.junit.Test;

/**
 * @author sjc
 * @version 1.0
 * @date 2020/10/1 10:18
 * @email 952491025@qq.com
 */
public class ThreadPoolTest {

    @Test
    public void test() throws Exception {
        SJCThreadPool threadPool = new SJCThreadPool(4,200);
        for (int i = 0;i < 400; i++) {
            threadPool.execute(new SJCTask());
            Thread.sleep(50);
        }
        threadPool.destroy();
    }
}
